import request from '/@/utils/request';

// 查询微信直播房间列表
export function listRoom(query?: Object) {
  return request({
    url: '/module/live/room/list',
    method: 'get',
    params: query
  })
}

// 查询微信直播房间详细
export function getRoom(id?: number) {
  return request({
    url: '/module/live/room/' + id,
    method: 'get'
  })
}

// 新增微信直播房间
export function addRoom(data?: Object) {
  return request({
    url: '/module/live/room',
    method: 'post',
    data
  })
}

// 修改微信直播房间
export function updateRoom(data?: Object) {
  return request({
    url: '/module/live/room',
    method: 'put',
    data
  })
}

// 删除微信直播房间
export function delRoom(id?: number) {
  return request({
    url: '/module/live/room/' + id,
    method: 'delete'
  })
}

// 导出微信直播房间
export function exportRoom(query?: Object) {
  return request({
    url: '/module/live/room/export',
    method: 'get',
    params: query
  })
}
